// pages/index/index.ts
const buttons = [
  {id:"1",text:"土地广场",key:"market"},
  {id:"2",text:"发布闲置",key:"upload"},
  {id:"3",text:"土地政策",key:"policy"},
  {id:"4",text:"我的主页",key:"mine"}
]
Page({
  data: {
    buttons,
    button_text_color:"#fff",
    subPage: buttons[0],
    subPageParam:{
      position: 'center',
      duration: 500,
      curPage: '',
      overlay: false
    },
  },
  onLoad() {

  },
  toNewPage(e:any){
    let choosed = e.currentTarget.dataset.word;
    wx.navigateTo({
      url: '../' + choosed +'/'+choosed
    });
    console.log(choosed,e);
  },
  onReady() {
    
  },
  onShow() {

  },

})